package com.shuma.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shuma.model.product.pojo.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-06-16
 */
@Mapper
public interface ProductMapper extends BaseMapper<Product> {

    @Select("select product_id from mall.product where user_id = #{userId}")
    List<Long> selectIdByUserId(Long userId);
}
